package com.netease.c;

import com.netease.k.e;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class o
{
  public static void a(File paramFile, String[] paramArrayOfString, e parame)
  {
    if (parame != null)
    {
      if (paramArrayOfString != null)
        break label15;
      parame.a(0, 0L);
    }
    while (true)
    {
      return;
      label15: Thread localThread = new Thread(new k(paramArrayOfString, paramFile, parame));
      localThread.setPriority(1);
      localThread.start();
    }
  }

  public static boolean a(File paramFile, int paramInt)
  {
    int i = 1;
    String[] arrayOfString;
    int j;
    if (paramFile.exists())
    {
      arrayOfString = paramFile.list();
      if (arrayOfString != null)
        break label29;
      j = 0;
      if (paramInt == j)
        break label36;
    }
    while (true)
    {
      return i;
      label29: j = arrayOfString.length;
      break;
      label36: i = 0;
    }
  }

  public static boolean a(String paramString, int paramInt)
  {
    return a(new File(paramString), paramInt);
  }

  public static boolean a(String paramString1, boolean paramBoolean, String paramString2, byte[] paramArrayOfByte)
  {
    File localFile = new File(paramString1);
    try
    {
      if (!localFile.exists())
        localFile.createNewFile();
      DataOutputStream localDataOutputStream = new DataOutputStream(new FileOutputStream(localFile, paramBoolean));
      localDataOutputStream.writeInt(4 + paramArrayOfByte.length);
      localDataOutputStream.writeInt(paramString2.hashCode());
      localDataOutputStream.write(paramArrayOfByte);
      localDataOutputStream.close();
      i = 1;
      return i;
    }
    catch (Exception localException)
    {
      while (true)
      {
        localException.printStackTrace();
        if (localFile.exists())
          localFile.delete();
        int i = 0;
      }
    }
  }

  public static boolean a(String paramString, boolean paramBoolean, byte[] paramArrayOfByte)
  {
    try
    {
      File localFile = new File(paramString);
      if (!localFile.exists())
        localFile.createNewFile();
      FileOutputStream localFileOutputStream = new FileOutputStream(localFile, paramBoolean);
      localFileOutputStream.write(paramArrayOfByte);
      localFileOutputStream.close();
      i = 1;
      return i;
    }
    catch (FileNotFoundException localFileNotFoundException)
    {
      while (true)
      {
        localFileNotFoundException.printStackTrace();
        int i = 0;
      }
    }
    catch (Exception localException)
    {
      while (true)
        localException.printStackTrace();
    }
  }

  public static byte[] a(String paramString)
  {
    try
    {
      File localFile = new File(paramString);
      if (localFile.exists())
      {
        FileInputStream localFileInputStream = new FileInputStream(localFile);
        arrayOfByte = new byte[localFileInputStream.available()];
        localFileInputStream.read(arrayOfByte);
        localFileInputStream.close();
        return arrayOfByte;
      }
    }
    catch (FileNotFoundException localFileNotFoundException)
    {
      while (true)
      {
        localFileNotFoundException.printStackTrace();
        byte[] arrayOfByte = null;
      }
    }
    catch (Exception localException)
    {
      while (true)
        localException.printStackTrace();
    }
  }

  // ERROR //
  public static byte[] a(String paramString1, String paramString2, int paramInt)
  {
    // Byte code:
    //   0: new 35	java/io/File
    //   3: dup
    //   4: aload_0
    //   5: invokespecial 47	java/io/File:<init>	(Ljava/lang/String;)V
    //   8: astore_3
    //   9: aload_3
    //   10: invokevirtual 39	java/io/File:exists	()Z
    //   13: ifeq +131 -> 144
    //   16: new 110	java/io/RandomAccessFile
    //   19: dup
    //   20: aload_3
    //   21: ldc 112
    //   23: invokespecial 115	java/io/RandomAccessFile:<init>	(Ljava/io/File;Ljava/lang/String;)V
    //   26: astore 5
    //   28: aload_1
    //   29: invokevirtual 74	java/lang/String:hashCode	()I
    //   32: istore 12
    //   34: iconst_0
    //   35: istore 13
    //   37: iload 13
    //   39: iload_2
    //   40: if_icmpge +20 -> 60
    //   43: aload 5
    //   45: aload 5
    //   47: invokevirtual 118	java/io/RandomAccessFile:readInt	()I
    //   50: invokevirtual 122	java/io/RandomAccessFile:skipBytes	(I)I
    //   53: pop
    //   54: iinc 13 1
    //   57: goto -20 -> 37
    //   60: aload 5
    //   62: invokevirtual 118	java/io/RandomAccessFile:readInt	()I
    //   65: istore 14
    //   67: aload 5
    //   69: invokevirtual 118	java/io/RandomAccessFile:readInt	()I
    //   72: iload 12
    //   74: if_icmpne +60 -> 134
    //   77: iload 14
    //   79: iconst_4
    //   80: if_icmplt +54 -> 134
    //   83: iload 14
    //   85: iconst_4
    //   86: isub
    //   87: istore 16
    //   89: iload 16
    //   91: newarray byte
    //   93: astore 4
    //   95: aload 5
    //   97: aload 4
    //   99: invokevirtual 123	java/io/RandomAccessFile:read	([B)I
    //   102: istore 17
    //   104: iload 17
    //   106: iload 16
    //   108: if_icmpne +26 -> 134
    //   111: aload 5
    //   113: ifnull +8 -> 121
    //   116: aload 5
    //   118: invokevirtual 124	java/io/RandomAccessFile:close	()V
    //   121: aload 4
    //   123: areturn
    //   124: astore 18
    //   126: aload 18
    //   128: invokevirtual 84	java/lang/Exception:printStackTrace	()V
    //   131: goto -10 -> 121
    //   134: aload 5
    //   136: ifnull +8 -> 144
    //   139: aload 5
    //   141: invokevirtual 124	java/io/RandomAccessFile:close	()V
    //   144: aconst_null
    //   145: astore 4
    //   147: goto -26 -> 121
    //   150: astore 15
    //   152: aload 15
    //   154: invokevirtual 84	java/lang/Exception:printStackTrace	()V
    //   157: goto -13 -> 144
    //   160: astore 6
    //   162: aconst_null
    //   163: astore 5
    //   165: aload 6
    //   167: invokevirtual 93	java/io/FileNotFoundException:printStackTrace	()V
    //   170: aload 5
    //   172: ifnull -28 -> 144
    //   175: aload 5
    //   177: invokevirtual 124	java/io/RandomAccessFile:close	()V
    //   180: goto -36 -> 144
    //   183: astore 9
    //   185: aload 9
    //   187: invokevirtual 84	java/lang/Exception:printStackTrace	()V
    //   190: goto -46 -> 144
    //   193: astore 10
    //   195: aconst_null
    //   196: astore 5
    //   198: aload 10
    //   200: invokevirtual 84	java/lang/Exception:printStackTrace	()V
    //   203: aload 5
    //   205: ifnull -61 -> 144
    //   208: aload 5
    //   210: invokevirtual 124	java/io/RandomAccessFile:close	()V
    //   213: goto -69 -> 144
    //   216: astore 11
    //   218: aload 11
    //   220: invokevirtual 84	java/lang/Exception:printStackTrace	()V
    //   223: goto -79 -> 144
    //   226: astore 7
    //   228: aconst_null
    //   229: astore 5
    //   231: aload 5
    //   233: ifnull +8 -> 241
    //   236: aload 5
    //   238: invokevirtual 124	java/io/RandomAccessFile:close	()V
    //   241: aload 7
    //   243: athrow
    //   244: astore 8
    //   246: aload 8
    //   248: invokevirtual 84	java/lang/Exception:printStackTrace	()V
    //   251: goto -10 -> 241
    //   254: astore 7
    //   256: goto -25 -> 231
    //   259: astore 10
    //   261: goto -63 -> 198
    //   264: astore 6
    //   266: goto -101 -> 165
    //
    // Exception table:
    //   from	to	target	type
    //   116	121	124	java/lang/Exception
    //   139	144	150	java/lang/Exception
    //   16	28	160	java/io/FileNotFoundException
    //   175	180	183	java/lang/Exception
    //   16	28	193	java/lang/Exception
    //   208	213	216	java/lang/Exception
    //   16	28	226	finally
    //   236	241	244	java/lang/Exception
    //   28	104	254	finally
    //   165	170	254	finally
    //   198	203	254	finally
    //   28	104	259	java/lang/Exception
    //   28	104	264	java/io/FileNotFoundException
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.c.o
 * JD-Core Version:    0.6.0
 */